<template>
    <div>
        <mt-field label="姓名" placeholder="请填写您的真实姓名" v-model="express_id_card"></mt-field>
        <mt-field label="身份证号" placeholder="请输入您的身份证号" type="number" v-model="express_name"></mt-field>
        <mt-field label="手机号" placeholder="输入你现在的手机号" type="tel" v-model="express_phone"></mt-field>
        <mt-field label="目标商户名称" v-model="express_shop" type="text" disabled></mt-field>
        <span></span>
        <div class="button">
            <wv-button type="primary" @click="apply">提交审核</wv-button>
        </div>
    </div>
</template>
<script>
import axios from 'axios'
export default {
    name: 'apply',
    data() {
        return {
            express_id_card: '',
            express_name: '',
            express_phone: '',
            express_shop: '沂源直营店',
            loading: false
        }
    },
    created: function () {},
    methods: {
        apply() {
            const _this = this
            axios
                .get('/api/expressRegLogin/saveSubmitExpressInfo', {
                    params: {
                        express_id_card: _this.express_id_card,
                        express_name: _this.express_name,
                        express_phone: _this.express_phone
                    }
                })
                .then(res => {
                    if (res.data) {
                        console.log(res)
                    }
                })
                .catch(error => {
                    console.log(error)
                })
        }
    }
}
</script>
<style>
.button {
    margin: 10px;
}
</style>
